﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using System.Web.Security;

namespace MvcDeviceManager.Models
{
    public class ModifyPassword
    {
        [Display(Name="旧密码")]
        [DataType(DataType.Password)]
        [Required(ErrorMessage = "请输入旧密码")]
        public string oldpassword { set; get; }

        [Display(Name = "新密码")]
        [DataType(DataType.Password)]
        [Required(ErrorMessage = "请输入新密码")]
        public string newpassword { set; get;  }

        [Display(Name = "确认密码")]
        [DataType(DataType.Password)]
        [Required(ErrorMessage="请输入确认密码")]
        [Compare("newpassword")]
        public string repassword { set; get; }
    }
}